package com.bridge;

public class Test {
    public static void main(String[] args) {
        //创建手机样式 一定是样式+品牌  ， 因为 PhoneStyle内部聚合了Brand品牌
        PhoneStyle phoneStyle = new FoldedPhoneStyle(new Xiaomi());
        phoneStyle.call();
        phoneStyle.close();

        phoneStyle = new FoldedPhoneStyle(new Vivo());
        phoneStyle.call();
        phoneStyle.close();



    }
}
